package com.wicket.okrbff.biz.service.dto.common;

import com.wicket.okrbff.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffOrgPositionStaffNumDto
 * @使用场景
 */
@Data
public class BffOrgPositionStaffNumDto
        extends PagedDto
        implements Serializable {

    /**
     * 职务ID:
     */
    @ApiModelProperty("职务ID")
    private String positionId;

    /**
     * 冗余职务名称:
     */
    @ApiModelProperty("冗余职务名称")
    private String positionIdName;

    /**
     * 职务级别ID:
     */
    @ApiModelProperty("职务级别ID")
    private String positionGradeId;

    /**
     * 职务级别名称:
     */
    @ApiModelProperty("职务级别名称")
    private String positionGradeName;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffOrgPositionStaffNumDto that = (BffOrgPositionStaffNumDto) o;
      return  positionId == that.positionId&&positionIdName == that.positionIdName&&positionGradeId == that.positionGradeId&&positionGradeName == that.positionGradeName;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), positionId,positionIdName,positionGradeId,positionGradeName);
    }

}
